.class public Lcom/esfile/screen/recorder/picture/crop/HighlightView;
.super Ljava/lang/Object;
.source "HighlightView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;,
        Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;,
        Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;,
        Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;
    }
.end annotation


# instance fields
.field public a:Landroid/graphics/RectF;

.field public b:Landroid/graphics/Rect;

.field private c:Landroid/graphics/RectF;

.field private final d:Landroid/graphics/Paint;

.field private final e:Landroid/graphics/Paint;

.field private final f:Landroid/graphics/Paint;

.field private g:Landroid/view/View;

.field private h:Z

.field private i:Z

.field private j:I

.field private k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

.field private l:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

.field private m:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

.field private n:Z

.field private o:F

.field private p:F

.field private q:F

.field private r:F

.field private s:F

.field private t:Z

.field private u:F

.field private v:Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;


# direct methods
.method public constructor <init>(Landroid/view/View;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    .line 3
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    .line 4
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    .line 5
    sget-object v0, Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;->None:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    .line 6
    sget-object v0, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;->Changing:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->l:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    .line 7
    sget-object v0, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;->Out:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->m:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

    const/4 v0, 0x0

    .line 8
    iput v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    .line 9
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    .line 10
    invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(Landroid/content/Context;)V

    return-void
.end method

.method private a(F)F
    .locals 1

    .line 27
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float p1, p1, v0

    return p1
.end method

.method private a(Landroid/content/Context;)V
    .locals 3

    .line 1
    new-instance v0, Landroid/util/TypedValue;

    invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V

    .line 2
    iget v0, v0, Landroid/util/TypedValue;->resourceId:I

    sget-object v1, Les/b5;->CropImageView:[I

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 3
    :try_start_0
    sget v0, Les/b5;->CropImageView_showThirds:I

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->h:Z

    .line 4
    sget v0, Les/b5;->CropImageView_showCircle:I

    invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->i:Z

    .line 5
    sget v0, Les/b5;->CropImageView_highlightColor:I

    const v1, -0xdd8b1a

    invoke-virtual {p1, v0, v1}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->j:I

    .line 6
    invoke-static {}, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;->values()[Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    move-result-object v0

    sget v1, Les/b5;->CropImageView_showHandles:I

    const/4 v2, 0x0

    invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v1

    aget-object v0, v0, v1

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->l:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-void

    :catchall_0
    move-exception v0

    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    .line 8
    throw v0
.end method

.method private a(I)Z
    .locals 1

    const/16 v0, 0x16

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private b()Landroid/graphics/Rect;
    .locals 5

    .line 25
    new-instance v0, Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    .line 26
    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v4

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v0
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 2
    new-instance v0, Landroid/graphics/RectF;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    invoke-direct {v0, v1}, Landroid/graphics/RectF;-><init>(Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawOval(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    return-void
.end method

.method private b(I)Z
    .locals 1

    .line 24
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz v0, :cond_0

    const/16 v0, 0x12

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 12

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->q:F

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->r:F

    const/high16 v1, 0x3fc00000    # 1.5f

    mul-float v1, v1, v0

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v0, v2

    .line 3
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->m:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

    sget-object v3, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;->Out:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

    if-ne v2, v3, :cond_0

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    sub-float v6, v4, v1

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    sub-float v7, v4, v0

    int-to-float v3, v3

    sub-float/2addr v3, v1

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v8, v3, v4

    int-to-float v2, v2

    sub-float v9, v2, v0

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 5
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    sub-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    sub-float v7, v4, v1

    int-to-float v3, v3

    sub-float v8, v3, v0

    int-to-float v2, v2

    sub-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 6
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    add-float/2addr v4, v1

    iget v5, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v7, v4, v5

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    sub-float v8, v4, v0

    int-to-float v3, v3

    add-float v9, v3, v1

    int-to-float v2, v2

    sub-float v10, v2, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v6, p1

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 7
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    add-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    sub-float v7, v4, v1

    int-to-float v3, v3

    add-float v8, v3, v0

    int-to-float v2, v2

    sub-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 8
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    sub-float v6, v4, v1

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    add-float v7, v4, v0

    int-to-float v3, v3

    sub-float/2addr v3, v1

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v8, v3, v4

    int-to-float v2, v2

    add-float v9, v2, v0

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 9
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    sub-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    add-float v7, v4, v1

    int-to-float v3, v3

    sub-float v8, v3, v0

    int-to-float v2, v2

    add-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 10
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    add-float/2addr v4, v1

    iget v5, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v7, v4, v5

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    add-float v8, v4, v0

    int-to-float v3, v3

    add-float v9, v3, v1

    int-to-float v2, v2

    add-float v10, v2, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v6, p1

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    add-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    add-float v7, v4, v1

    int-to-float v3, v3

    add-float v8, v3, v0

    int-to-float v0, v2

    add-float/2addr v0, v1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v9, v0, v1

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    goto/16 :goto_0

    .line 12
    :cond_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v5, v3

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    add-float v6, v4, v0

    int-to-float v3, v3

    add-float/2addr v3, v1

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v7, v3, v4

    int-to-float v2, v2

    add-float v8, v2, v0

    iget-object v9, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v4, p1

    invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 13
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    add-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v7, v2

    int-to-float v3, v3

    add-float v8, v3, v0

    int-to-float v2, v2

    add-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    sub-float/2addr v4, v1

    iget v5, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v7, v4, v5

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v4, v2

    add-float v8, v4, v0

    int-to-float v9, v3

    int-to-float v2, v2

    add-float v10, v2, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v6, p1

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 15
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    sub-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->top:I

    int-to-float v7, v2

    int-to-float v3, v3

    sub-float v8, v3, v0

    int-to-float v2, v2

    add-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 16
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v5, v3

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    sub-float v6, v4, v0

    int-to-float v3, v3

    add-float/2addr v3, v1

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    add-float v7, v3, v4

    int-to-float v2, v2

    sub-float v8, v2, v0

    iget-object v9, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v4, p1

    invoke-virtual/range {v4 .. v9}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 17
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->left:I

    int-to-float v4, v3

    add-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v7, v2

    int-to-float v3, v3

    add-float v8, v3, v0

    int-to-float v2, v2

    sub-float/2addr v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v9, v2, v3

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 18
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    sub-float/2addr v4, v1

    iget v5, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v7, v4, v5

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v4, v2

    sub-float v8, v4, v0

    int-to-float v9, v3

    int-to-float v2, v2

    sub-float v10, v2, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v6, p1

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 19
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v3, v2, Landroid/graphics/Rect;->right:I

    int-to-float v4, v3

    sub-float v6, v4, v0

    iget v2, v2, Landroid/graphics/Rect;->bottom:I

    int-to-float v7, v2

    int-to-float v3, v3

    sub-float v8, v3, v0

    int-to-float v0, v2

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    sub-float v9, v0, v1

    iget-object v10, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    move-object v5, p1

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :goto_0
    return-void
.end method

.method private c(I)Z
    .locals 1

    .line 20
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz v0, :cond_0

    const/16 v0, 0xa

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private d(Landroid/graphics/Canvas;)V
    .locals 8

    .line 1
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I

    move-result v0

    int-to-float v4, v0

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    int-to-float v5, v0

    iget-object v6, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    const/4 v2, 0x0

    const/4 v3, 0x0

    move-object v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v3, v0

    invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I

    move-result v0

    int-to-float v4, v0

    invoke-virtual {p1}, Landroid/graphics/Canvas;->getHeight()I

    move-result v0

    int-to-float v5, v0

    iget-object v6, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->top:I

    int-to-float v4, v1

    iget v1, v0, Landroid/graphics/Rect;->left:I

    int-to-float v5, v1

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v6, v0

    iget-object v7, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    const/4 v3, 0x0

    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->right:I

    int-to-float v3, v1

    iget v0, v0, Landroid/graphics/Rect;->top:I

    int-to-float v4, v0

    invoke-virtual {p1}, Landroid/graphics/Canvas;->getWidth()I

    move-result v0

    int-to-float v5, v0

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v6, v0

    iget-object v7, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    return-void
.end method

.method private d(I)Z
    .locals 1

    const/16 v0, 0x1a

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private e(Landroid/graphics/Canvas;)V
    .locals 12

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    const/high16 v1, 0x3f800000    # 1.0f

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->right:I

    iget v2, v0, Landroid/graphics/Rect;->left:I

    sub-int/2addr v1, v2

    div-int/lit8 v1, v1, 0x3

    int-to-float v1, v1

    .line 3
    iget v3, v0, Landroid/graphics/Rect;->bottom:I

    iget v0, v0, Landroid/graphics/Rect;->top:I

    sub-int v4, v3, v0

    div-int/lit8 v4, v4, 0x3

    int-to-float v4, v4

    int-to-float v5, v2

    add-float v7, v5, v1

    int-to-float v8, v0

    int-to-float v0, v2

    add-float v9, v0, v1

    int-to-float v10, v3

    .line 4
    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    move-object v6, p1

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v2, v0, Landroid/graphics/Rect;->left:I

    int-to-float v3, v2

    const/high16 v5, 0x40000000    # 2.0f

    mul-float v1, v1, v5

    add-float v7, v3, v1

    iget v3, v0, Landroid/graphics/Rect;->top:I

    int-to-float v8, v3

    int-to-float v2, v2

    add-float v9, v2, v1

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v10, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->left:I

    int-to-float v7, v1

    iget v1, v0, Landroid/graphics/Rect;->top:I

    int-to-float v2, v1

    add-float v8, v2, v4

    iget v0, v0, Landroid/graphics/Rect;->right:I

    int-to-float v9, v0

    int-to-float v0, v1

    add-float v10, v0, v4

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    iget v1, v0, Landroid/graphics/Rect;->left:I

    int-to-float v7, v1

    iget v1, v0, Landroid/graphics/Rect;->top:I

    int-to-float v2, v1

    mul-float v4, v4, v5

    add-float v8, v2, v4

    iget v0, v0, Landroid/graphics/Rect;->right:I

    int-to-float v9, v0

    int-to-float v0, v1

    add-float v10, v0, v4

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    return-void
.end method

.method private e(I)Z
    .locals 1

    .line 8
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz v0, :cond_0

    const/16 v0, 0x14

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private f(I)Z
    .locals 1

    .line 3
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz v0, :cond_0

    const/16 v0, 0xc

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private f(Landroid/graphics/Canvas;)Z
    .locals 3

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x11

    if-ne v0, v1, :cond_0

    const/4 p1, 0x0

    return p1

    :cond_0
    const/16 v1, 0xe

    const/4 v2, 0x1

    if-lt v0, v1, :cond_2

    const/16 v1, 0xf

    if-le v0, v1, :cond_1

    goto :goto_0

    .line 2
    :cond_1
    invoke-virtual {p1}, Landroid/graphics/Canvas;->isHardwareAccelerated()Z

    move-result p1

    xor-int/2addr p1, v2

    return p1

    :cond_2
    :goto_0
    return v2
.end method

.method private g(I)Z
    .locals 1

    const/16 v0, 0x1c

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private h(I)Z
    .locals 1

    const/16 v0, 0xe

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method


# virtual methods
.method public a(FF)I
    .locals 8

    .line 52
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b()Landroid/graphics/Rect;

    move-result-object v0

    .line 53
    iget v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    .line 54
    iget v2, v0, Landroid/graphics/Rect;->top:I

    int-to-float v2, v2

    sub-float/2addr v2, v1

    const/4 v3, 0x0

    const/4 v4, 0x1

    cmpl-float v2, p2, v2

    if-ltz v2, :cond_0

    iget v2, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v2, v2

    add-float/2addr v2, v1

    cmpg-float v2, p2, v2

    if-gez v2, :cond_0

    const/4 v2, 0x1

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    .line 55
    :goto_0
    iget v5, v0, Landroid/graphics/Rect;->left:I

    int-to-float v5, v5

    sub-float/2addr v5, v1

    cmpl-float v5, p1, v5

    if-ltz v5, :cond_1

    iget v5, v0, Landroid/graphics/Rect;->right:I

    int-to-float v5, v5

    add-float/2addr v5, v1

    cmpg-float v5, p1, v5

    if-gez v5, :cond_1

    const/4 v3, 0x1

    .line 56
    :cond_1
    iget v5, v0, Landroid/graphics/Rect;->left:I

    int-to-float v5, v5

    sub-float/2addr v5, p1

    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v5

    const/4 v6, 0x2

    cmpg-float v5, v5, v1

    if-gez v5, :cond_2

    if-eqz v2, :cond_2

    const/4 v5, 0x2

    goto :goto_1

    :cond_2
    const/4 v5, 0x1

    .line 57
    :goto_1
    iget v7, v0, Landroid/graphics/Rect;->right:I

    int-to-float v7, v7

    sub-float/2addr v7, p1

    invoke-static {v7}, Ljava/lang/Math;->abs(F)F

    move-result v7

    cmpg-float v7, v7, v1

    if-gez v7, :cond_3

    if-eqz v2, :cond_3

    or-int/lit8 v2, v5, 0x4

    and-int/lit16 v5, v2, 0xfe

    .line 58
    :cond_3
    iget v2, v0, Landroid/graphics/Rect;->top:I

    int-to-float v2, v2

    sub-float/2addr v2, p2

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    cmpg-float v2, v2, v1

    if-gez v2, :cond_4

    if-eqz v3, :cond_4

    or-int/lit8 v2, v5, 0x8

    and-int/lit16 v5, v2, 0xfe

    .line 59
    :cond_4
    iget v2, v0, Landroid/graphics/Rect;->bottom:I

    int-to-float v2, v2

    sub-float/2addr v2, p2

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    cmpg-float v1, v2, v1

    if-gez v1, :cond_5

    if-eqz v3, :cond_5

    or-int/lit8 v1, v5, 0x10

    and-int/lit16 v5, v1, 0xfe

    .line 60
    :cond_5
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz v1, :cond_9

    if-ne v5, v6, :cond_6

    :goto_2
    or-int/lit8 v5, v5, 0x18

    goto :goto_4

    :cond_6
    const/16 v1, 0x8

    if-ne v5, v1, :cond_7

    :goto_3
    or-int/lit8 v5, v5, 0x6

    goto :goto_4

    :cond_7
    const/4 v1, 0x4

    if-ne v5, v1, :cond_8

    goto :goto_2

    :cond_8
    const/16 v1, 0x10

    if-ne v5, v1, :cond_9

    goto :goto_3

    :cond_9
    :goto_4
    if-ne v5, v4, :cond_a

    float-to-int p1, p1

    float-to-int p2, p2

    .line 61
    invoke-virtual {v0, p1, p2}, Landroid/graphics/Rect;->contains(II)Z

    move-result p1

    if-eqz p1, :cond_a

    const/16 v5, 0x20

    :cond_a
    return v5
.end method

.method public a()Landroid/graphics/Rect;
    .locals 6

    .line 144
    new-instance v0, Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    sub-float/2addr v1, v2

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    sub-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    add-float/2addr v3, v4

    .line 145
    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    add-float/2addr v4, v5

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v4

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v0
.end method

.method protected a(IFF)V
    .locals 7

    .line 62
    new-instance v0, Landroid/graphics/RectF;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-direct {v0, v1}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    .line 63
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    const/high16 v2, 0x40000000    # 2.0f

    const/4 v3, 0x0

    if-eqz v1, :cond_12

    cmpl-float v1, p2, v3

    if-eqz v1, :cond_0

    .line 64
    iget p3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    div-float p3, p2, p3

    goto :goto_0

    :cond_0
    cmpl-float v1, p3, v3

    if-eqz v1, :cond_1

    .line 65
    iget p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    mul-float p2, p2, p3

    .line 66
    :cond_1
    :goto_0
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->t:Z

    if-eqz v1, :cond_3

    .line 67
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v1

    add-float/2addr v1, p2

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->s:F

    cmpg-float v1, v1, v4

    if-gtz v1, :cond_2

    .line 68
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result p2

    sub-float p2, v4, p2

    .line 69
    iget p3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    div-float p3, p2, p3

    .line 70
    :cond_2
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v1

    add-float/2addr v1, p3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->s:F

    cmpg-float v1, v1, v4

    if-gtz v1, :cond_3

    .line 71
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result p2

    sub-float p3, v4, p2

    .line 72
    iget p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    mul-float p2, p2, p3

    .line 73
    :cond_3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->h(I)Z

    move-result v1

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-nez v1, :cond_5

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(I)Z

    move-result v1

    if-eqz v1, :cond_4

    goto :goto_1

    :cond_4
    const/4 v1, 0x0

    goto :goto_2

    :cond_5
    :goto_1
    const/4 v1, 0x1

    .line 74
    :goto_2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d(I)Z

    move-result v6

    if-nez v6, :cond_6

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g(I)Z

    move-result v6

    if-eqz v6, :cond_7

    :cond_6
    const/4 v4, 0x1

    :cond_7
    if-eqz v4, :cond_8

    div-float/2addr p3, v2

    goto :goto_3

    :cond_8
    if-eqz v1, :cond_9

    div-float/2addr p2, v2

    .line 75
    :cond_9
    :goto_3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d(I)Z

    move-result v1

    if-eqz v1, :cond_a

    .line 76
    iget p1, v0, Landroid/graphics/RectF;->left:F

    sub-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->left:F

    cmpl-float v1, v1, v5

    if-ltz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float v5, v1, p3

    iget v6, v4, Landroid/graphics/RectF;->top:F

    cmpl-float v5, v5, v6

    if-ltz v5, :cond_11

    iget v5, v0, Landroid/graphics/RectF;->bottom:F

    add-float v6, v5, p3

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    cmpg-float v4, v6, v4

    if-gtz v4, :cond_11

    sub-float/2addr p1, p2

    .line 77
    iput p1, v0, Landroid/graphics/RectF;->left:F

    sub-float/2addr v1, p3

    .line 78
    iput v1, v0, Landroid/graphics/RectF;->top:F

    add-float/2addr v5, p3

    .line 79
    iput v5, v0, Landroid/graphics/RectF;->bottom:F

    goto/16 :goto_4

    .line 80
    :cond_a
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g(I)Z

    move-result v1

    if-eqz v1, :cond_b

    .line 81
    iget p1, v0, Landroid/graphics/RectF;->right:F

    add-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->right:F

    cmpg-float v1, v1, v5

    if-gtz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float v5, v1, p3

    iget v6, v4, Landroid/graphics/RectF;->top:F

    cmpl-float v5, v5, v6

    if-ltz v5, :cond_11

    iget v5, v0, Landroid/graphics/RectF;->bottom:F

    add-float v6, v5, p3

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    cmpg-float v4, v6, v4

    if-gtz v4, :cond_11

    add-float/2addr p1, p2

    .line 82
    iput p1, v0, Landroid/graphics/RectF;->right:F

    sub-float/2addr v1, p3

    .line 83
    iput v1, v0, Landroid/graphics/RectF;->top:F

    add-float/2addr v5, p3

    .line 84
    iput v5, v0, Landroid/graphics/RectF;->bottom:F

    goto/16 :goto_4

    .line 85
    :cond_b
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->h(I)Z

    move-result v1

    if-eqz v1, :cond_c

    .line 86
    iget p1, v0, Landroid/graphics/RectF;->left:F

    sub-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->left:F

    cmpl-float v1, v1, v5

    if-ltz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float v5, v1, p3

    iget v6, v4, Landroid/graphics/RectF;->top:F

    cmpl-float v5, v5, v6

    if-ltz v5, :cond_11

    iget v5, v0, Landroid/graphics/RectF;->right:F

    add-float v6, v5, p2

    iget v4, v4, Landroid/graphics/RectF;->right:F

    cmpg-float v4, v6, v4

    if-gtz v4, :cond_11

    sub-float/2addr p1, p2

    .line 87
    iput p1, v0, Landroid/graphics/RectF;->left:F

    sub-float/2addr v1, p3

    .line 88
    iput v1, v0, Landroid/graphics/RectF;->top:F

    add-float/2addr v5, p2

    .line 89
    iput v5, v0, Landroid/graphics/RectF;->right:F

    goto/16 :goto_4

    .line 90
    :cond_c
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(I)Z

    move-result v1

    if-eqz v1, :cond_d

    .line 91
    iget p1, v0, Landroid/graphics/RectF;->right:F

    add-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->right:F

    cmpg-float v1, v1, v5

    if-gtz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->left:F

    sub-float v5, v1, p2

    iget v6, v4, Landroid/graphics/RectF;->left:F

    cmpl-float v5, v5, v6

    if-ltz v5, :cond_11

    iget v5, v0, Landroid/graphics/RectF;->bottom:F

    add-float v6, v5, p3

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    cmpg-float v4, v6, v4

    if-gtz v4, :cond_11

    add-float/2addr p1, p2

    .line 92
    iput p1, v0, Landroid/graphics/RectF;->right:F

    sub-float/2addr v1, p2

    .line 93
    iput v1, v0, Landroid/graphics/RectF;->left:F

    add-float/2addr v5, p3

    .line 94
    iput v5, v0, Landroid/graphics/RectF;->bottom:F

    goto/16 :goto_4

    .line 95
    :cond_d
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c(I)Z

    move-result v1

    if-eqz v1, :cond_e

    .line 96
    iget p1, v0, Landroid/graphics/RectF;->left:F

    sub-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->left:F

    cmpl-float v1, v1, v5

    if-ltz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float v5, v1, p3

    iget v4, v4, Landroid/graphics/RectF;->top:F

    cmpl-float v4, v5, v4

    if-ltz v4, :cond_11

    sub-float/2addr p1, p2

    .line 97
    iput p1, v0, Landroid/graphics/RectF;->left:F

    sub-float/2addr v1, p3

    .line 98
    iput v1, v0, Landroid/graphics/RectF;->top:F

    goto :goto_4

    .line 99
    :cond_e
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f(I)Z

    move-result v1

    if-eqz v1, :cond_f

    .line 100
    iget p1, v0, Landroid/graphics/RectF;->right:F

    add-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->right:F

    cmpg-float v1, v1, v5

    if-gtz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float v5, v1, p3

    iget v4, v4, Landroid/graphics/RectF;->top:F

    cmpl-float v4, v5, v4

    if-ltz v4, :cond_11

    add-float/2addr p1, p2

    .line 101
    iput p1, v0, Landroid/graphics/RectF;->right:F

    sub-float/2addr v1, p3

    .line 102
    iput v1, v0, Landroid/graphics/RectF;->top:F

    goto :goto_4

    .line 103
    :cond_f
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b(I)Z

    move-result v1

    if-eqz v1, :cond_10

    .line 104
    iget p1, v0, Landroid/graphics/RectF;->left:F

    sub-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->left:F

    cmpl-float v1, v1, v5

    if-ltz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->bottom:F

    add-float v5, v1, p3

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    cmpg-float v4, v5, v4

    if-gtz v4, :cond_11

    sub-float/2addr p1, p2

    .line 105
    iput p1, v0, Landroid/graphics/RectF;->left:F

    add-float/2addr v1, p3

    .line 106
    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    goto :goto_4

    .line 107
    :cond_10
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e(I)Z

    move-result p1

    if-eqz p1, :cond_11

    .line 108
    iget p1, v0, Landroid/graphics/RectF;->right:F

    add-float v1, p1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v5, v4, Landroid/graphics/RectF;->right:F

    cmpg-float v1, v1, v5

    if-gtz v1, :cond_11

    iget v1, v0, Landroid/graphics/RectF;->bottom:F

    add-float v5, v1, p3

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    cmpg-float v4, v5, v4

    if-gtz v4, :cond_11

    add-float/2addr p1, p2

    .line 109
    iput p1, v0, Landroid/graphics/RectF;->right:F

    add-float/2addr v1, p3

    .line 110
    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    :cond_11
    :goto_4
    const/4 p1, 0x0

    const/4 v1, 0x0

    goto/16 :goto_6

    :cond_12
    cmpl-float v1, p2, v3

    if-lez v1, :cond_13

    .line 111
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v1

    mul-float v4, p2, v2

    add-float/2addr v1, v4

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    invoke-virtual {v4}, Landroid/graphics/RectF;->width()F

    move-result v4

    cmpl-float v1, v1, v4

    if-lez v1, :cond_13

    .line 112
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    invoke-virtual {p2}, Landroid/graphics/RectF;->width()F

    move-result p2

    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v1

    sub-float/2addr p2, v1

    div-float/2addr p2, v2

    :cond_13
    cmpl-float v1, p3, v3

    if-lez v1, :cond_14

    .line 113
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v1

    mul-float v4, p3, v2

    add-float/2addr v1, v4

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v4

    cmpl-float v1, v1, v4

    if-lez v1, :cond_14

    .line 114
    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    invoke-virtual {p3}, Landroid/graphics/RectF;->height()F

    move-result p3

    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v1

    sub-float/2addr p3, v1

    div-float/2addr p3, v2

    .line 115
    :cond_14
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->t:Z

    if-eqz v1, :cond_16

    .line 116
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v1

    add-float/2addr v1, p2

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->s:F

    cmpg-float v1, v1, v4

    if-gtz v1, :cond_15

    .line 117
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result p2

    sub-float p2, v4, p2

    .line 118
    :cond_15
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v1

    add-float/2addr v1, p3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->s:F

    cmpg-float v1, v1, v4

    if-gtz v1, :cond_16

    .line 119
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result p3

    sub-float p3, v4, p3

    :cond_16
    and-int/lit8 v1, p1, 0x2

    if-eqz v1, :cond_17

    .line 120
    iget v1, v0, Landroid/graphics/RectF;->left:F

    sub-float/2addr v1, p2

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v4, v4, Landroid/graphics/RectF;->left:F

    invoke-static {v1, v4}, Ljava/lang/Math;->max(FF)F

    move-result v1

    iput v1, v0, Landroid/graphics/RectF;->left:F

    :cond_17
    and-int/lit8 v1, p1, 0x8

    if-eqz v1, :cond_18

    .line 121
    iget v1, v0, Landroid/graphics/RectF;->top:F

    sub-float/2addr v1, p3

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v4, v4, Landroid/graphics/RectF;->top:F

    invoke-static {v1, v4}, Ljava/lang/Math;->max(FF)F

    move-result v1

    iput v1, v0, Landroid/graphics/RectF;->top:F

    :cond_18
    and-int/lit8 v1, p1, 0x4

    if-eqz v1, :cond_19

    .line 122
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget v4, v0, Landroid/graphics/RectF;->right:F

    sub-float/2addr v1, v4

    invoke-static {p2, v1}, Ljava/lang/Math;->min(FF)F

    move-result v1

    .line 123
    iget v4, v0, Landroid/graphics/RectF;->right:F

    add-float/2addr v4, p2

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget p2, p2, Landroid/graphics/RectF;->right:F

    invoke-static {v4, p2}, Ljava/lang/Math;->min(FF)F

    move-result p2

    iput p2, v0, Landroid/graphics/RectF;->right:F

    goto :goto_5

    :cond_19
    const/4 v1, 0x0

    :goto_5
    and-int/lit8 p1, p1, 0x10

    if-eqz p1, :cond_1a

    .line 124
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget p1, p1, Landroid/graphics/RectF;->bottom:F

    iget p2, v0, Landroid/graphics/RectF;->bottom:F

    sub-float/2addr p1, p2

    invoke-static {p3, p1}, Ljava/lang/Math;->min(FF)F

    move-result p1

    .line 125
    iget p2, v0, Landroid/graphics/RectF;->bottom:F

    add-float/2addr p2, p3

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget p3, p3, Landroid/graphics/RectF;->bottom:F

    invoke-static {p2, p3}, Ljava/lang/Math;->min(FF)F

    move-result p2

    iput p2, v0, Landroid/graphics/RectF;->bottom:F

    goto :goto_6

    :cond_1a
    const/4 p1, 0x0

    .line 126
    :goto_6
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->v:Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;

    if-eqz p2, :cond_1b

    .line 127
    invoke-interface {p2, v1, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;->b(FF)V

    .line 128
    :cond_1b
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result p1

    const/high16 p2, 0x41c80000    # 25.0f

    cmpg-float p1, p1, p2

    if-gez p1, :cond_1c

    .line 129
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result p1

    sub-float p1, p2, p1

    neg-float p1, p1

    div-float/2addr p1, v2

    invoke-virtual {v0, p1, v3}, Landroid/graphics/RectF;->inset(FF)V

    .line 130
    :cond_1c
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    if-eqz p1, :cond_1d

    iget p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    div-float/2addr p2, p1

    .line 131
    :cond_1d
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result p1

    cmpg-float p1, p1, p2

    if-gez p1, :cond_1e

    .line 132
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result p1

    sub-float/2addr p2, p1

    neg-float p1, p2

    div-float/2addr p1, v2

    invoke-virtual {v0, v3, p1}, Landroid/graphics/RectF;->inset(FF)V

    .line 133
    :cond_1e
    iget p1, v0, Landroid/graphics/RectF;->left:F

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget p3, p2, Landroid/graphics/RectF;->left:F

    cmpg-float v1, p1, p3

    if-gez v1, :cond_1f

    sub-float/2addr p3, p1

    .line 134
    invoke-virtual {v0, p3, v3}, Landroid/graphics/RectF;->offset(FF)V

    goto :goto_7

    .line 135
    :cond_1f
    iget p1, v0, Landroid/graphics/RectF;->right:F

    iget p2, p2, Landroid/graphics/RectF;->right:F

    cmpl-float p3, p1, p2

    if-lez p3, :cond_20

    sub-float/2addr p1, p2

    neg-float p1, p1

    .line 136
    invoke-virtual {v0, p1, v3}, Landroid/graphics/RectF;->offset(FF)V

    .line 137
    :cond_20
    :goto_7
    iget p1, v0, Landroid/graphics/RectF;->top:F

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget p3, p2, Landroid/graphics/RectF;->top:F

    cmpg-float v1, p1, p3

    if-gez v1, :cond_21

    sub-float/2addr p3, p1

    .line 138
    invoke-virtual {v0, v3, p3}, Landroid/graphics/RectF;->offset(FF)V

    goto :goto_8

    .line 139
    :cond_21
    iget p1, v0, Landroid/graphics/RectF;->bottom:F

    iget p2, p2, Landroid/graphics/RectF;->bottom:F

    cmpl-float p3, p1, p2

    if-lez p3, :cond_22

    sub-float/2addr p1, p2

    neg-float p1, p1

    .line 140
    invoke-virtual {v0, v3, p1}, Landroid/graphics/RectF;->offset(FF)V

    .line 141
    :cond_22
    :goto_8
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V

    .line 142
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b()Landroid/graphics/Rect;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    .line 143
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    invoke-virtual {p1}, Landroid/view/View;->invalidate()V

    return-void
.end method

.method public a(Landroid/graphics/Canvas;)V
    .locals 4

    .line 28
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 29
    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    .line 30
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->r:F

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 31
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    .line 32
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    invoke-virtual {v2, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    .line 33
    new-instance v2, Landroid/graphics/RectF;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    invoke-direct {v2, v3}, Landroid/graphics/RectF;-><init>(Landroid/graphics/Rect;)V

    sget-object v3, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;

    invoke-virtual {v0, v2, v3}, Landroid/graphics/Path;->addRect(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V

    .line 34
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->j:I

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    .line 35
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f(Landroid/graphics/Canvas;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 36
    sget-object v2, Landroid/graphics/Region$Op;->DIFFERENCE:Landroid/graphics/Region$Op;

    invoke-virtual {p1, v0, v2}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;Landroid/graphics/Region$Op;)Z

    .line 37
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v2}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto :goto_0

    .line 38
    :cond_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d(Landroid/graphics/Canvas;)V

    .line 39
    :goto_0
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    .line 40
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 41
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->h:Z

    if-eqz v0, :cond_1

    .line 42
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e(Landroid/graphics/Canvas;)V

    .line 43
    :cond_1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->i:Z

    if-eqz v0, :cond_2

    .line 44
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b(Landroid/graphics/Canvas;)V

    .line 45
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->l:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    sget-object v1, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;->Always:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    if-eq v0, v1, :cond_3

    sget-object v1, Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;->Changing:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleMode;

    if-ne v0, v1, :cond_4

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    sget-object v1, Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;->Grow:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    if-ne v0, v1, :cond_4

    .line 46
    :cond_3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c(Landroid/graphics/Canvas;)V

    :cond_4
    return-void
.end method

.method public a(Landroid/graphics/Rect;Landroid/graphics/RectF;Z)V
    .locals 1

    const/4 v0, 0x0

    .line 9
    invoke-virtual {p0, p1, p2, p3, v0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(Landroid/graphics/Rect;Landroid/graphics/RectF;ZZ)V

    return-void
.end method

.method public a(Landroid/graphics/Rect;Landroid/graphics/RectF;ZZ)V
    .locals 4

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d:Landroid/graphics/Paint;

    const/16 v1, 0x3f

    const/16 v2, 0x7d

    invoke-virtual {v0, v2, v1, v1, v1}, Landroid/graphics/Paint;->setARGB(IIII)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->e:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    const/high16 v0, 0x40000000    # 2.0f

    .line 13
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(F)F

    move-result v2

    iput v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->r:F

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->j:I

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    .line 15
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 16
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->f:Landroid/graphics/Paint;

    invoke-virtual {v2, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    const/high16 v1, 0x41900000    # 18.0f

    .line 17
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(F)F

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    const/high16 v1, 0x40800000    # 4.0f

    .line 18
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(F)F

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->q:F

    .line 19
    sget-object v1, Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;->Grow:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    const v1, 0x42856666    # 66.7f

    .line 20
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(F)F

    move-result v1

    iput v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->s:F

    if-eqz p4, :cond_0

    .line 21
    iget p4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->r:F

    div-float/2addr p4, v0

    iput p4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    .line 22
    :cond_0
    new-instance p4, Landroid/graphics/RectF;

    iget v0, p2, Landroid/graphics/RectF;->left:F

    iget v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    add-float/2addr v0, v1

    iget v2, p2, Landroid/graphics/RectF;->top:F

    add-float/2addr v2, v1

    iget v3, p2, Landroid/graphics/RectF;->right:F

    sub-float/2addr v3, v1

    iget p2, p2, Landroid/graphics/RectF;->bottom:F

    sub-float/2addr p2, v1

    invoke-direct {p4, v0, v2, v3, p2}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object p4, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    .line 23
    new-instance p2, Landroid/graphics/RectF;

    iget p4, p1, Landroid/graphics/Rect;->left:I

    int-to-float p4, p4

    iget v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->u:F

    add-float/2addr p4, v0

    iget v1, p1, Landroid/graphics/Rect;->top:I

    int-to-float v1, v1

    add-float/2addr v1, v0

    iget v2, p1, Landroid/graphics/Rect;->right:I

    int-to-float v2, v2

    sub-float/2addr v2, v0

    iget p1, p1, Landroid/graphics/Rect;->bottom:I

    int-to-float p1, p1

    sub-float/2addr p1, v0

    invoke-direct {p2, p4, v1, v2, p1}, Landroid/graphics/RectF;-><init>(FFFF)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    .line 24
    iput-boolean p3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->n:Z

    .line 25
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p1}, Landroid/graphics/RectF;->width()F

    move-result p1

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p2}, Landroid/graphics/RectF;->height()F

    move-result p2

    div-float/2addr p1, p2

    iput p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->o:F

    .line 26
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b()Landroid/graphics/Rect;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;)V
    .locals 0

    .line 50
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->m:Lcom/esfile/screen/recorder/picture/crop/HighlightView$HandleLocation;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;)V
    .locals 1

    .line 47
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    if-eq p1, v0, :cond_0

    .line 48
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->k:Lcom/esfile/screen/recorder/picture/crop/HighlightView$ModifyMode;

    .line 49
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    invoke-virtual {p1}, Landroid/view/View;->invalidate()V

    :cond_0
    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;)V
    .locals 0

    .line 146
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->v:Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 51
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->t:Z

    return-void
.end method

.method protected b(FF)V
    .locals 4

    .line 12
    new-instance v0, Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    invoke-direct {v0, v1}, Landroid/graphics/Rect;-><init>(Landroid/graphics/Rect;)V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    add-float v2, v1, p1

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->left:F

    cmpg-float v2, v2, v3

    if-gtz v2, :cond_0

    sub-float p1, v3, v1

    .line 14
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    add-float v2, v1, p1

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    cmpl-float v2, v2, v3

    if-ltz v2, :cond_1

    sub-float p1, v3, v1

    .line 15
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->top:F

    add-float v2, v1, p2

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->top:F

    cmpg-float v2, v2, v3

    if-gtz v2, :cond_2

    sub-float p2, v3, v1

    .line 16
    :cond_2
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->bottom:F

    add-float v2, v1, p2

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->c:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->bottom:F

    cmpl-float v2, v2, v3

    if-ltz v2, :cond_3

    sub-float p2, v3, v1

    .line 17
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->v:Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;

    if-eqz v1, :cond_4

    .line 18
    invoke-interface {v1, p1, p2}, Lcom/esfile/screen/recorder/picture/crop/HighlightView$a;->a(FF)V

    .line 19
    :cond_4
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {v1, p1, p2}, Landroid/graphics/RectF;->offset(FF)V

    .line 20
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b()Landroid/graphics/Rect;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b:Landroid/graphics/Rect;

    .line 21
    invoke-virtual {v0, p1}, Landroid/graphics/Rect;->union(Landroid/graphics/Rect;)V

    .line 22
    iget p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->p:F

    float-to-int p2, p1

    neg-int p2, p2

    float-to-int p1, p1

    neg-int p1, p1

    invoke-virtual {v0, p2, p1}, Landroid/graphics/Rect;->inset(II)V

    .line 23
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g:Landroid/view/View;

    invoke-virtual {p1, v0}, Landroid/view/View;->invalidate(Landroid/graphics/Rect;)V

    return-void
.end method

.method public b(IFF)V
    .locals 3

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b()Landroid/graphics/Rect;

    move-result-object v0

    const/16 v1, 0x20

    if-ne p1, v1, :cond_0

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p1}, Landroid/graphics/RectF;->width()F

    move-result p1

    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v1

    int-to-float v1, v1

    div-float/2addr p1, v1

    mul-float p2, p2, p1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p1}, Landroid/graphics/RectF;->height()F

    move-result p1

    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p1, v0

    mul-float p3, p3, p1

    .line 6
    invoke-virtual {p0, p2, p3}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->b(FF)V

    goto :goto_4

    :cond_0
    and-int/lit8 v1, p1, 0x6

    const/4 v2, 0x0

    if-nez v1, :cond_1

    const/4 p2, 0x0

    :cond_1
    and-int/lit8 v1, p1, 0x18

    if-nez v1, :cond_2

    const/4 p3, 0x0

    .line 7
    :cond_2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->d(I)Z

    move-result v1

    if-nez v1, :cond_5

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->g(I)Z

    move-result v1

    if-eqz v1, :cond_3

    goto :goto_0

    .line 8
    :cond_3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->h(I)Z

    move-result v1

    if-nez v1, :cond_6

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(I)Z

    move-result v1

    if-eqz v1, :cond_4

    goto :goto_1

    :cond_4
    move v2, p2

    goto :goto_1

    :cond_5
    :goto_0
    move v2, p2

    const/4 p3, 0x0

    .line 9
    :cond_6
    :goto_1
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p2}, Landroid/graphics/RectF;->width()F

    move-result p2

    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v1

    int-to-float v1, v1

    div-float/2addr p2, v1

    mul-float v2, v2, p2

    .line 10
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a:Landroid/graphics/RectF;

    invoke-virtual {p2}, Landroid/graphics/RectF;->height()F

    move-result p2

    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p2, v0

    mul-float p3, p3, p2

    and-int/lit8 p2, p1, 0x2

    const/4 v0, -0x1

    const/4 v1, 0x1

    if-eqz p2, :cond_7

    const/4 p2, -0x1

    goto :goto_2

    :cond_7
    const/4 p2, 0x1

    :goto_2
    int-to-float p2, p2

    mul-float p2, p2, v2

    and-int/lit8 v2, p1, 0x8

    if-eqz v2, :cond_8

    goto :goto_3

    :cond_8
    const/4 v0, 0x1

    :goto_3
    int-to-float v0, v0

    mul-float v0, v0, p3

    .line 11
    invoke-virtual {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(IFF)V

    :goto_4
    return-void
.end method
